package com.lanou3g.musicenjoy.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.TextView;
import com.lanou3g.musicenjoy.R;


/**
 * Created by dllo on 15/11/10.
 */
public class RingActivity extends Activity implements View.OnClickListener {
    private WebView webView;
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_PROGRESS);
        setContentView(R.layout.item_menu);
        textView= (TextView) findViewById(R.id.menuItemTextView);
        webView= (WebView) findViewById(R.id.menuItemWebView);
        textView.setOnClickListener(this);
        WebSettings settings=webView.getSettings();
        settings.setSupportZoom(false);
        settings.setDefaultFontSize(10);
        Intent intent=getIntent();
        Log.i("fjfjfjfj",intent.getStringExtra("weburl"));
        webView.loadUrl(intent.getStringExtra("weburl"));
    }

    @Override
    public void onClick(View v) {
        finish();
    }
}
